package cn.edu.swpu.cins.u_chain.frontend.dao.team;

import cn.edu.swpu.cins.u_chain.frontend.entity.dto.team.TeamMemView;
import cn.edu.swpu.cins.u_chain.frontend.entity.dto.team.TeamPros;
import cn.edu.swpu.cins.u_chain.frontend.entity.dto.user.student.SkillDetails;
import cn.edu.swpu.cins.u_chain.frontend.entity.persistence.team.TeamInfo;
import cn.edu.swpu.cins.u_chain.frontend.entity.persistence.team.TeamMembers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface TeamDao {
    int insertTeam(TeamInfo teamInfo);

    int insertTeamMember(TeamMembers teamMembers);

    List<TeamPros> selectProByTeamId(@Param("teamId") List<Integer> teamId,@Param("limit") int limit,@Param("offset") int offset);

    List<Integer> selectTeamIdsByUserId(int userId);

    List<TeamMemView> selectAllMems(int teamId);

    List<SkillDetails> selectMemSkillsById(int userId);

    List<TeamPros> selectProByOneTeamId(int teamId);
}
